﻿///////////////////////////////////////////////////////////////
// Projet serveur entreprise
// Authors: Pierre Corsini, Guillaume Blanc
// mars 2011
///////////////////////////////////////////////////////////////

using System;
using System.Collections.Generic;

using System.Text;

namespace DLL
{
    public class Utilisateur
    {
        private int _id;

        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }


        private string _user;

        public string User
        {
            get { return _user; }
            set { _user = value; }
        }


        private string _pwd;

        public string Pwd
        {
            get { return _pwd; }
            set { _pwd = value; }
        }

        private string _nom;

        public string Nom
        {
            get { return _nom; }
            set { _nom = value; }
        }

        private string _prenom;

        public string Prenom
        {
            get { return _prenom; }
            set { _prenom = value; }
        }

        public string StringRepresentation
        {
            get { return this.ToString(); }
            set { }
        }

        public Utilisateur() { }

        public Utilisateur(int id, String user, String pwd, String nom, String prenom)
        {
            this._id = id;
            this._user = user;
            this._pwd = pwd;
            this._nom = nom;
            this._prenom = prenom;
        }

        public override string ToString()
        {
            return String.Format("[{0}] {1}, {2}, {3} {4}", Id, User, Pwd, Nom, Prenom);
        }
    }
}
